package com.Day04;

public class Recentange  extends Shape {
    private int width;
    private int length;

    public Recentange(int width, int length) {
        this.width = width;
        this.length = length;
    }

    //计算周长
    public Integer Perimnter(){
        return (width+length) * 2;
    }

    //计算面积
    public Integer Area(){
        return width * length;
    }
}
